package priv.conceit.sc.hoxton.file.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.stereotype.Component;
import priv.conceit.sc.hoxton.common.constant.file.FileSourceEnum;

/**
 * FileSourceProperties 文件服务源模型
 *
 * @author conceit
 * @date 2020/9/29 16:08
 */
@Component
@RefreshScope
@ConfigurationProperties(FileSourceProperties.PREFIX)
@Data
public class FileSourceProperties {

	public static final String PREFIX="file.source";

	private FileSourceEnum primary;
	private MinioProperties minio;
	private LocalProperties local;

}
